# Paramètres GNUPLOT
reset
set border
set xlabel "Time (s)"
set ylabel "Packets number"

set multiplot

set size 1,0.5
set origin 0.0,0.5
set title "Network activity"

plot "traffic.plt" using 1:2 with filledcurve title "Trafic"

set size 0.5,0.5
set origin 0.0,0.0

set title "IPv4 / IPv6"

plot "traffic.plt" using 1:3 with lines title "IPv4 trafic", \
     "traffic.plt" using 1:4 with lines title "IPv6 trafic"

set size 0.5,0.5
set origin 0.5,0

set title "TCP / UDP"

plot "traffic.plt" using 1:5 with lines title "TCP trafic", \
     "traffic.plt" using 1:6 with lines title "UDP trafic"

unset multiplot
reset

# On met une pause pour pas que GNUPLOT quitte
#pause -1
